package com.minglead.springboot.platform.sys.bean;

import java.io.Serializable;

/**
 * 通用bean
 * 可以用来封装key-value
 * 也可以用来封装前台普通列表
 * @author clz
 * @date 2016-7-4
 */
public class CommonBean implements Serializable{
	private static final long serialVersionUID = 1L;
	private String name;
	private String value;//key
	private String label;//中文

	private String createTime;
	private String desc;
	
	private String state; // open:自动展开 close:不自动展开 ；提供前台使用
	
	private Boolean selected;//select 选中；提供前台使用
	
	private Integer counts;
	
	private Integer totalCounts;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Boolean getSelected() {
		return selected;
	}

	public void setSelected(Boolean selected) {
		this.selected = selected;
	}

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	public Integer getTotalCounts() {
		return totalCounts;
	}

	public void setTotalCounts(Integer totalCounts) {
		this.totalCounts = totalCounts;
	}

	@Override
	public String toString() {
		return "CommonBean [name=" + name + ", value=" + value + ", label=" + label + "]";
	}
	
}
